package com.example.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author chentao
 * @create 2023/3/11 20:40
 * @since 1.0.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "spring.datasource")
public class DruidDataSourceProperties {

    private String username;

    private String password;

    private String url;

    private String type;

    private int initialSize;

    private int minIdle;

    private int maxActive;

    private int maxWait;

    private boolean testOnBorrow;

    private boolean testWhileIdle;

    private int timeBetweenEvictionRunsMillis;

    private long maxEvictableIdleTimeMillis;

}